package interfaces;

/**
 * @classname:Pet
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/28 17:28
 * @version: 0.1
 * @since:1.8
 */
public class Pet {
    private String name;
    private String gender;
    private int exp;
    private int degree;
    public Pet() {
    }
    public Pet(String name, String gender, int exp, int degree) {
        this.name = name;
        this.gender = gender;
        this.exp = exp;
        this.degree = degree;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getExp() {
        return exp;
    }

    public void setExp(int exp) {
        this.exp = exp;
    }

    public int getDegree() {
        return degree;
    }

    public void setDegree(int degree) {
        this.degree = degree;
    }

    public  void follow(){
        System.out.println("跟随主人");
    }
    public  void eat(){
        System.out.println("吃食物");
    }
}
